package com.yy.community.modules.article.service;

import com.yy.community.common.utils.PageUtils;
import com.yy.community.modules.article.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 司马缸砸缸了
 * @since 2019-07-12
 */
public interface IArticleService extends IService<Article> {

    PageUtils queryPage(Map<String, Object> params);

    List<Article> queryList(Article article);

    Article queryById(String id);

    void updateArticleById(Article article);

    void deleteArticleById(String id);

    /**
     * 批量删除
     * @param ids
     */
    void deleteBatch(String[] ids);
}
